package com.chen.config;

import com.alibaba.dashscope.aigc.generation.Generation;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "ali.qwen")
@Data
public class QwenConfig {

    private String apiKey;


    /**
     * 注册通义千文客户端
     * @return
     */
    @Bean
    public Generation generation(){
        return new Generation();
    }
}
